<?php
//inculde即可以使用data数据。本页所有的data数据，倾在controller都处理好
include_once("../../../common/module/checkA.php");
include_once("../../../../config.php");
include_once("../../config.php");
?>





<?php
//接收需要修改的数据的id
$new_detail_nid          = addslashes($_REQUEST['nid']);



//传递过来的页面信息。返回的时候，会根据这些信息返回原来的页面
$nowpageid = addslashes($_REQUEST['nowpageid']);
$sortby    = addslashes($_REQUEST['sortby']);
$term_nid  = addslashes($_REQUEST['term_nid']);
$navitemed = addslashes($_REQUEST['navitemed']);



$_REQUEST['ai_authur']      = $_SESSION['username'];
$_REQUEST['ai_ip']          = $_SERVER["REMOTE_ADDR"];;


//设置需要搜索的表格的前缀后缀
$table_suffix = "unit";
$table        = $table_Prefix . $table_suffix;


$sql=update_date($table,$_REQUEST,"nid",$new_detail_nid);
sql_log($sql);
$query = mysql_query($sql) or die (mysql_error().$sql);

?>
 
<?if($_SESSION['quanxian']=="unit_user"){?>

    <script type="text/javascript">
        alert("输入信息已保存，点击确认返回继续操作.");
        document.location.href = "../view/detail-edit.php?nid=<?echo $new_detail_nid?>"
    </script>
<?php;}
else{?>


<script type="text/javascript">
    alert("输入信息已保存，点击确认返回继续操作.");
    document.location.href = "../view/detail-list.php?nowpageid=<? echo $_GET["nowpageid"] ?>&sortby=<? echo $sortby?>&nid=<? echo $term_nid ?>&now_extender=<? echo $system_part ?>&nav-itemed=<? echo $_GET["nav-itemed"] ?>"
</script>
    <?;}?>
